package com.elock.service;

import java.util.List;
import java.util.Map;

import com.elock.base.core.Page;
import com.elock.base.core.Pageable;
import com.elock.base.core.service.BaseService;
import com.elock.entity.TerminalMessageEvent;

/**
 * 终端事件信息
 * @author 仁德
 */
public interface TerminalMessageEventService extends BaseService<TerminalMessageEvent> {

	public Page<Map<String, Object>> findPage(String elockids, String terminalids,
			Long lastId, String plateNum, String terminalNum, String elockNum,
			Long saleOrgId, String startTime, String endTime, Pageable pageable);

	public List<Map<String, Object>> findList(String elockids, String terminalids,
			Long lastId, Integer maxcount);

	public List<Map<String, Object>> findListByTaskSn(String taskSn);

	public List<Map<String, Object>> getStatus(String carIds, String elockIds,
			String terminalIds);

	public Map<String, Object> getRealtimePosition(Long id, Integer type,
			String terminalNum);

	public Page<Map<String, Object>> findCarMonitorPage(Integer type, Long oid,
			String carNumber, String startTime, String endTime, Pageable pageable);

	public Page<Map<String, Object>> findTerminalMonitorPage(Integer type, Long oid,
			String terminalNum, String startTime, String endTime, Pageable pageable);

	public Integer countTerminalMessageEvent(String elockids, String terminalids,
			Long lastId, String plateNum, String terminalNum, String elockNum,
			Long saleOrgId, String startTime, String endTime, Pageable pageable,
			Integer page, Integer size);
	
	public List<Map<String, Object>> findTerminalMessageEventList(String elockids,
			String terminalids, Long lastId, String plateNum, String terminalNum,
			String elockNum, Long saleOrgId, String startTime, String endTime,
			Pageable pageable, Integer page, Integer size);
}
